/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.cput.ac.principles.ocp.ocpfix.impl;

/**
 *
 * @author Ilyaas Khatib
 */
public class Triangle extends Shape{

    @Override
    void create() {
        int length = 5;
        int height = 5;
        double area = (0.5*length) * height;
        System.out.println("Area of triangle is: "+area+"cm");
    }
    
    public static void main(String[] args) {
        Triangle t = new Triangle();
        t.create();
    }
}
